<!--{template admin/tpl/header}-->

<div class="mainarea">
<div class="maininner">

<!--{if empty($addnews)}-->
$thevalue
	<form method="post" action="admincp.php?ac=newsman">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">
		<div class="topactions"><a href="admincp.php?ac=newsman">浏览</a> | <a href="admincp.php?ac=newsman&op=add">添加</a></div>
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr>
			<th>分类名称</th>
			<th>显示顺序</th>
			<th width="80">操作</th>
		</tr>
		<!--{loop $newslist $value}-->
		<tr>
			<th>$value[catname]</th>
			<td><input type="text" name="displayorder[{$value[catid]}]" value="$value[catorder]" size="5"></td>
			<td width="80">
			<a href="admincp.php?ac=newsman&op=edit&catid=$value[catid]">编辑</a> | 
			<a href="admincp.php?ac=newsman&op=delete&catid=$value[catid]" onclick="return confirm('确认删除？');">删除</a></td>
		</tr>
		<!--{loop $newslist_cat $value_cat}-->
				<!--{if $value_cat[parentid]==$value[catid]}-->
				<tr>
				<td>&nbsp;&nbsp;&nbsp;&nbsp;|——&gt;$value_cat[catname]</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="displayorder[{$value_cat[catid]}]" value="$value_cat[catorder]" size="5"></td>
				<td width="80">
				<a href="admincp.php?ac=newsman&op=edit&catid=$value_cat[catid]">编辑</a> | 
				<a href="admincp.php?ac=newsman&op=delete&catid=$value_cat[catid]" onclick="return confirm('确认删除？');">删除</a></td>
				</tr>
				<!--{/if}-->	
			<!--{/loop}-->
		<!--{/loop}-->
		</table>
	</div>
	
	<div class="footactions">
		<input type="submit" name="ordersubmit" value="更新排序" class="submit">
	</div>
	
	</form>
	
<!--{else}-->
	<form method="post" action="admincp.php?ac=newsman&op=$op">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	
	<div class="bdrcontent">
		
		<div class="topactions"><a href="admincp.php?ac=newsman">浏览</a> | <a href="admincp.php?ac=newsman&op=add">添加</a></div>
		
		<table cellspacing="0" cellpadding="0" class="formtable">
		<input type="hidden" name="catid" value="$newsvalue[catid]" >
		<tr><th style="width:15em;">分类名称：</th><td><input type="text" name="catname" value="$newsvalue[catname]"></td></tr>
		<tr><th>上级分类：</th><td>
		
			<select name="parentid" >
			<!--{if $newsvalue[parentid]==0}-->
			<option value="0" selected>顶级分类</option>
			<!--{else}-->
			<option value="0" >顶级分类</option>
			<!--{/if}-->
			<!--{loop $newslist $value}-->
				<!--{if $newsvalue[parentid]==$value[catid]}-->
					<option value="$value[catid]" selected>$value[catname]</option>
				<!--{else}-->
					<option value="$value[catid]" >$value[catname]</option>
				<!--{/if}-->
				<!--{/loop}-->
			</select>
		</td></tr>
		<tr><th>显示顺序</th><td><input type="text" name="catorder" value="$newsvalue[catorder]" ></td></tr>
		</table>
	</div>
	<div class="footactions">
		<input type="submit" name="newssubmit" value="提交" class="submit">
	</div>
	
	</form>
<!--{/if}-->
</div>
</div>

<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->